{template header}
{template nav}

<div class="sidnav">您的位置：&nbsp;
<a href="{url index.php}" target="_blank" >首页</a>&nbsp;&gt;&nbsp;
<a href="{url index.php?m=car&f=buy}" target="_blank">我要买车</a>&nbsp;&gt;&nbsp;二手车报价
</div>
 
<div class="area">
<form action="" method="post" name="myform" id="myform" autocomplete="off">
 
	<div class="left1">
    	<div class="lboxcon1">
        	<div class="seachcon"><span class="fl">您已选择：</span>
	        	<div class="fr" id="search-selected">
	        		<a href="{url index.php?m=car&f=buy}">全部清除</a>
	        	</div>
        	</div>
			<ul class="seachul" id="search-option">
      <li><strong>车&nbsp;&nbsp;&nbsp;&nbsp;型：</strong>
      <DIV class="selnew">
       <select name="brand1" id="brand1" onchange="get_brand(this)" style="width:120px;"><option value="0">请选择品牌...</option>
       {if getGP('bid')}
       {get_brands_parent_options_bychild(getGP('bid'))}
       {else}
       {get_brands_parent(2,0)}
       {/if} </select>
<select name="brand2" id="brand2" style="width:120px;" onchange="document.location.href='{searchurl('bid')}'+'&bid='+this.value"><option value="0">请选择车系...</option>
{if getGP('bid')}
{get_brands_brother_options(getGP('bid'))}
{/if}
</select>
	</DIV>
			
              </li>
 
<li>
<strong>级&nbsp;&nbsp;&nbsp;&nbsp;别：</strong>
 {php $cates=get_category_by_type(1);}
 <a href="{searchurl('cid')}"{if !getGP('cid')} class="cur"{/if}>不限</a>
 {loop $cates $v}
<a href="{searchurl('cid',$v[cid])}"{if getGP('cid')==$v['cid']} class="cur"{/if}>{$v['catename']}</a>
{/loop}

</li>
<li>
<strong>价格区间：</strong>

<a href="{searchurl('pri')}"{if !getGP('pri')} class="cur"{/if}>不限</a>
<a href="{searchurl('pri',1)}"{if getGP('pri')==1} class="cur"{/if}>3万以下</a>
<a href="{searchurl('pri',2)}"{if getGP('pri')==2} class="cur"{/if}>3-5万</a>
<a href="{searchurl('pri',3)}"{if getGP('pri')==3} class="cur"{/if}>5-10万</a>
<a href="{searchurl('pri',4)}"{if getGP('pri')==4} class="cur"{/if}>10-15万</a>
<a href="{searchurl('pri',5)}"{if getGP('pri')==5} class="cur"{/if}>15-20万</a>
<a href="{searchurl('pri',6)}"{if getGP('pri')==6} class="cur"{/if}>20-50万</a>
<a href="{searchurl('pri',7)}"{if getGP('pri')==7} class="cur"{/if}>50万以上</a>

</li>
<li><strong>表显里程：</strong>
<a href="{searchurl('lic')}"{if !getGP('lic')} class="cur"{/if}>不限</a>
<a href="{searchurl('lic',1)}"{if getGP('lic')==1} class="cur"{/if}>1万公里以内</a>
<a href="{searchurl('lic',2)}"{if getGP('lic')==2} class="cur"{/if}>1-3万公里</a>
<a href="{searchurl('lic',3)}"{if getGP('lic')==3} class="cur"{/if}>3-6万公里</a>
<a href="{searchurl('lic',4)}"{if getGP('lic')==4} class="cur"{/if}>6-10万公里</a>
<a href="{searchurl('lic',5)}"{if getGP('lic')==5} class="cur"{/if}>10万公里以上</a>
 

</li>
<li><strong>使用年限：</strong>
<a href="{searchurl('yr')}"{if !getGP('yr')} class="cur"{/if}>不限</a>
<a href="{searchurl('yr',1)}"{if getGP('yr')==1} class="cur"{/if}>1年以内</a>
<a href="{searchurl('yr',2)}"{if getGP('yr')==2} class="cur"{/if}>1-3年</a>
<a href="{searchurl('yr',3)}"{if getGP('yr')==3} class="cur"{/if}>3-5年</a>
<a href="{searchurl('yr',4)}"{if getGP('yr')==4} class="cur"{/if}>5-8年</a>
<a href="{searchurl('yr',5)}"{if getGP('yr')==5} class="cur"{/if}>8年以上</a>
</li>
<li><strong>排&nbsp;&nbsp;&nbsp;&nbsp;量：</strong>
<a href="{searchurl('pl')}"{if !getGP('pl')} class="cur"{/if}>不限</a>
<a href="{searchurl('pl',1)}"{if getGP('pl')==1} class="cur"{/if}>1.0L以下</a>
<a href="{searchurl('pl',2)}"{if getGP('pl')==2} class="cur"{/if}>1.0-1.6L</a>
<a href="{searchurl('pl',3)}"{if getGP('pl')==3} class="cur"{/if}>1.6L-2.0L</a>
<a href="{searchurl('pl',4)}"{if getGP('pl')==4} class="cur"{/if}>2.0L-2.6L</a>
<a href="{searchurl('pl',5)}"{if getGP('pl')==5} class="cur"{/if}>2.6L以上</a>
</li>
<li><strong>变速方式：</strong>
<a href="{searchurl('bs')}"{if !getGP('bs')} class="cur"{/if}>不限</a>
<a href="{searchurl('bs',1)}"{if getGP('bs')==1} class="cur"{/if}>手动</a>
<a href="{searchurl('bs',2)}"{if getGP('bs')==2} class="cur"{/if}>自动</a>
<a href="{searchurl('bs',3)}"{if getGP('bs')==3} class="cur"{/if}>手自一体</a>
<a href="{searchurl('bs',4)}"{if getGP('bs')==4} class="cur"{/if}>无级变速</a>
</li>
</ul>
</div>
 
 <div class="lboxcon">
        	<div class="tit">
            	<ul class="tab">
            <li {if !getGP('sid','G','int')}class="cur"{/if}><a href="{url index.php?m=car&f=buy}" >全部</a></li>
<li {if getGP('sid','G','int')==1}class="cur"{/if}><a href="{url index.php?m=car&f=buy&sid=1}" >个人车源</a></li>
<li {if getGP('sid','G','int')==2}class="cur"{/if}><a href="{url index.php?m=car&f=buy&sid=2}" >商家车源</a></li>
            
            
        </ul><span class="fr">共为您找到<span class="red"> {$num} </span>条车源&nbsp;&nbsp;&nbsp;</span>
            </div>
             
            <div class="lbox1">
            	<div class="mctxtcon"><span class="fl">
            	<a href="{searchurl('view')}"  {if !getGP('view')}class="cur"{/if}>列表查看</a>
            	<a href="{searchurl('view',1)}" {if getGP('view')}class="cur"{/if}>大图查看</a>
            	</span><span class="fr">
            	<a  href="{searchurl('pris',1)}" {if getGP('pris','G','int')==1}class="cur"{/if}>根据价格排序<em></em></a>
            	<a  href="{searchurl('pris',2)}" {if getGP('pris','G','int')==2}class="cur"{/if}>根据价格排序<em class="em"></em></a>
            	<a  href="{searchurl('pris')}" {if !getGP('pris','G','int')}class="cur"{/if}>根据最新发布排序<em></em></a></span>
            	</div>
              		{if getGP('view')}
              		<ul class="mcpiclist">
              		 {loop $datas $v}
              		<li>
                    	<div class="vgcon"><div class="vgbox"><a target="_blank" href="{url index.php?m=car&f=buy&id=$v[id]}" class="abox">
                    	
                    	<img width="200" height="130" src="{echo DATA_DIR}files/{$v['picture']}" alt="{$v['title']}" class="boxc">
                    	</a></div></div>
                       	<h3><a href="{url index.php?m=car&f=buy&id=$v[id]}" target="_blank">{$v['title']}</a></h3>
                         <div class="picpcon">   
                           {gdate('Y年m月',$v['shangpai'])}上牌 
                           <span class="fr">{$v['licheng']}万公里
                           </span></div>  
                       
                       <div class="picpcon">
	                       <div class="bqcon">
                          {if $v['status']}<span class="bq02" title="审核通过">审</span>{/if}
                           {if $v['shopid'] || true}<span class="bq03" title="商家车源">商</span>{/if}
	                       </div>
                       <div class="mcprice" style="float:right; padding-top: 5px;"><em>{$v['price']}</em>万元</div>
                       </div>
                    </li>
                     {/loop}         
                              {else}
                              <ul class="mclist">
                             {loop $datas $v}
                                	<li>
                    	<div class="vgcon"><div class="vgbox"><a class="abox" href="{url index.php?m=car&f=buy&id=$v[id]}" target="_blank">
                    	<img width="150" height="100" class="boxc" alt="{$v['title']}" src="{echo DATA_DIR}files/{$v['picture']}"/>
                    	</a></div></div>
                        <div class="mctxt">
                        	<h3><a target="_blank" href="{url index.php?m=car&f=buy&id=$v[id]}">{$v['title']}</a></h3>    
                            <div class="mcxx"><span class="fl">{gdate('Y年m月',$v['shangpai'])}上牌 
                             {$v['licheng']}万公里
                             </span>
	                            <div class="bqcon">
		                            {if $v['status']}<span class="bq02" title="审核通过">审</span>{/if}
                                    {if $v['shopid']}<span class="bq03" title="商家车源">商</span>{/if}
                                    	                            </div>
                            </div> 
                            <p>{$v['jianjie']}</p>
                        </div>
                        <div class="mcprice"><em>{$v['price']}</em> 万元</div>
                    </li>
                    {/loop}
                  	{/if}
								</ul>
                				<div class="pagcon" style="float:right;">{$page} </div>
                                	
           </div>
           
    </div>
    </div>
   
    <div class="right0">
    	<div class="rboxcon">
        	<a style="margin-bottom:16px" class="toolbtn" href="{url index.php?m=car&f=addcar}" target="_blank">免费发布个人车源</a>
         </div>
			<!-- 推荐二手车  开始 -->
			
			
 
 <div class="rboxcon"><div class="rtit">
                	<h2>二手车推荐</h2>
             </div>
             {php $recars=get_recommend_cars(0,5)}
             <ul class="rlist5">
             {loop $recars $v}
                             <li><div class="vgcon">
	                	<div class="vgbox">
		                	<a target="_blank" href="{url index.php?m=car&f=buy&id=$v[id]}" class="abox">
                    	<img width="120" height="80" class="boxc" alt="{$v['title']}" src="{echo DATA_DIR}files/{$v['picture']}"/>
		                	</a>
	                	</div>
                	</div>
                	<p>
	                	<a target="_blank" href="{url index.php?m=car&f=buy&id=$v[id]}" class="carmoda" title="{$v['title']}">{$v['title']}</a><br>
	                	<span class="red">{$v['price']} 万元</span><br>
	                	                	</p>
	                
               	</li>
               	{/loop}
             </ul>
             </div>
             
 
			 
			<!-- 推荐二手车  结束 -->
			
        
         <div class="rboxcon" id="lookedCar">
         </div>
         <script>
	         var cookieCar = getCookie("cookieCar");
	         if(cookieCar){
				 var cookieCarJson = eval("("+cookieCar+")");
				 var lookedCarHtml = "";
				 var jsonCar = "";
				 if(cookieCarJson.length > 0){
					 lookedCarHtml = "<div class=\"rtit\"><h2>您浏览过的车源</h2></div> <ul class=\"rlist3\">";
					 for(var i = 0;i<cookieCarJson.length;i++){
						jsonCar = cookieCarJson[i];
						if(jsonCar){
							lookedCarHtml += "<li><a target=\"_blank\" href=\""+jsonCar.url+"\">"+jsonCar.name+"</a></li>";
						}
					 }
					 lookedCarHtml += "</ul></div>";
					document.getElementById("lookedCar").innerHTML = lookedCarHtml;
				 }
	         }else{
	        	 document.getElementById("lookedCar").style.display = "none";
	         }
         </script>
         

         
          
    </div>
</form> 
</div>
 
 
 
	
	
<!-- 友情链接 start -->
 
<DIV class=area>
<DIV class=tit>
<H2>友情链接</H2></DIV>
<DIV class=cbox>
<DIV class=link1>
{php $link=get_friendlink(30);}
{loop $link $v}
<a href="{$v['url']}" target=_blank {if $v['highlight']} style="font-weight:bold;"{/if}>{$v['name']}</a>&nbsp;
{/loop}
</DIV></DIV></DIV>  
 
<!-- 友情链接 end -->
{template footer}